package cn.getech.data.development.model.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value = "实时任务运维")
public class RealTimeTaskOpsVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("任务id")
    private Integer menuId;

    @ApiModelProperty("父级菜单，根菜单id:0")
    private Integer parentId;

    @ApiModelProperty("项目id")
    private Integer procId;

    @ApiModelProperty("项目名")
    private String procName;

    @TableField("目录名称")
    private String name;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("创建人id")
    private Long createPer;

    @ApiModelProperty("创建人名称")
    private String createPerName;

    @ApiModelProperty("最近操作人名称")
    private String updatePerName;

    @ApiModelProperty("操作人id")
    private Long updatePer;

    @ApiModelProperty("jobId")
    private String jobId;
    @ApiModelProperty("appId")
    private String appId;
    @ApiModelProperty("最近操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    @ApiModelProperty("最近运行时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date runTime;

    @ApiModelProperty("duration")
    private String duration;
    //0 失败 1 成功 2 运行中 3 未运行

    @ApiModelProperty("运行状态")
    private Integer runState;

    //能否操作 1 能 0 否
    private Integer enableOp = 0;

    private Integer taskType;


}
